//package com.lsh.config.dao;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.scheduling.annotation.SchedulingConfigurer;
//import org.springframework.scheduling.config.ScheduledTaskRegistrar;
//
//import java.util.concurrent.Executors;
//
///**
// * @Author: niu_zhongpei
// * @Date: 2020/1/8 16:04
// * @Description: 定时器配置
// */
//
//@Configuration
//public class ScheduleConfig implements SchedulingConfigurer {
//
//    //定时器线程数量
//    private static final int POOL_SIZE = 11;
//
//    @Override
//    public void configureTasks(ScheduledTaskRegistrar taskRegistrar) {
//
//        //手动分配定时器线程数量
//        taskRegistrar.setScheduler(Executors.newScheduledThreadPool(POOL_SIZE));
//    }
//}
